package net.csdn.business.kanban.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName KanbanFieldExtension
 * @Description TODO
 * @Author liuzhisheng
 * @Date 2023/9/13
 **/
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("kanban_field_extension")
@Schema(description = "看板字段扩展表")
public class KanbanFieldExtension implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(name = "id", description = "字段扩展ID")
    private Long id;

    @Schema(name = "kanban_id", description = "看板ID")
    private String kanbanId;

    @Schema(name = "field_id", description = "字段ID")
    private Long fieldId;

    @Schema(name = "field_properties", description = "字段属性")
    private String fieldProperties;

    @Schema(name = "priority", description = "排序优先级")
    private Integer priority;

    @Schema(name = "created_at", description = "创建时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    @Schema(name="creator_id",description = "创建人ID")
    private String creatorId;

    /** 审核状态 */
    @Schema(name="audit_status",description = "审核状态")
    private Integer auditStatus;
}

